'use strict';
//获取数据库
const db = uniCloud.database()
const usercollection = db.collection("C_user")
  
exports.main = async (event, context) => { 
	 let w_str={
		 name:event.name,
		 pwd:event.pwd
	 }
	 console.log(w_str)
	let result= await usercollection.where(w_str).get()
	return {
		code: 200,
		msg: '用户登录请求发送成功',
		data: result.data
	}
	 
};
